home *** CD-ROM | disk | FTP | other *** search
- /*
- * File: Configuration.h
- *
- * Contains: xxx put contents here xxx
- *
- * Written by: P. Nagarajan
- *
- * Copyright: © 1993 by Apple Computer, Inc., all rights reserved.
- *
- * Change History (most recent first):
- *
- * 3/26/93 NAGA xxx put comment here xxx
- *
- * To Do:
- */
-
- #ifndef __Configuration__
- #define __Configuration__
-
- #ifndef __TYPES__
- #include <Types.h>
- #endif
-
- struct Configuration
- {
- // Values from SysEnvirons (Version 1)
- short environsVersion;
- short machineType;
- short systemVersion;
- short processor;
- Boolean hasFPU;
- Boolean hasColorQD;
- short keyboardType;
- short atDrvrVersNum;
- long teVersion; // TextEdit version
-
- // Derived values
- Boolean hasROM128K; // ROM 128K - OR - Better
- Boolean hasHFS;
-
- Boolean hasHierarchicalMenus;
- Boolean hasScriptManager;
- Boolean hasStyleTextEdit;
- Boolean hasSoundManager;
- Boolean hasWaitNextEvent;
- Boolean hasSCSI;
- Boolean hasDesktopBus;
- Boolean hasAUX;
- Boolean hasTempMem; // TRUE if Process Manager temp memory is
- // avail
- Boolean has32BitQD; // TRUE if 32 bit Quickdraw is installed
- Boolean hasAppleEventMgr; // TRUE if running under System 7.0
- Boolean hasAppleEventMgr101; // TRUE if running Apple Event Manager 1.0.1 or later
- Boolean hasEditionMgr; // TRUE if running under System 7.0
- Boolean hasHelpMgr; // TRUE if running under System 7.0
- Boolean hasAliasMgr; // TRUE if running under System 7.0
- Boolean hasFolderMgr; // TRUE if running under System 7.0
- Boolean hasProcessMgr; // TRUE if running under System 7.0
- Boolean hasThreadMgr; // TRUE if running with Thread Manager 2.0.1 or later
- Boolean hasPopupCDEF; // TRUE if running under System 7.0
- Boolean hasTrueType; // TRUE if TrueType is present
-
- Boolean isOnlyBackground; // TRUE if ProcessInfoRec.processMode has modeOnlyBackground
- Boolean isHighLevelEventAware; // TRUE if ProcessInfoRec.processMode has modeHighLevelEventAware
- };
-
- extern void DefineConfiguration(Configuration&);
- extern void BlockSet( Ptr destPtr, long byteCount, unsigned char setVal );
-
- long StripLong(void * address);
- pascal TrapType GetTrapType(short theTrap);
- short NumToolboxTraps();
- pascal Boolean TrapExists(short theTrap);
- Boolean HasGestaltAttr(OSType itsAttr, short itsBit);
- #endif
-
-